/**
 * Copyright (c) 2018 软唐 All rights reserved.
 *
 * https://www.softtown.cn
 *
 * 版权所有，侵权必究！
 */

package com.softtown.modules.dapai.controller;

import com.github.pagehelper.PageInfo;
import com.softtown.common.utils.Result;
import com.softtown.modules.dapai.dto.CompMacAddDTO;
import com.softtown.modules.dapai.dto.CompMacDTO;
import com.softtown.modules.dapai.service.CompMacService;
import com.softtown.modules.dapai.service.CompMacStockService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
* @Author: Ding Ya Yong
* @Description: 设备
* @date: 2022/1/2 20:47
* @Param:
* @return:
*/
@RestController
@RequestMapping("macStock")
@Api(tags="设备")
public class CompMacStockController {

    @Resource
    private CompMacStockService compMacStockService;

    @PostMapping("getMacStockPageList")
    @ApiOperation("获取设备庫存分页")
    public Result getMacStockPageList(@RequestBody CompMacDTO compMacDTO) {
        PageInfo<CompMacDTO> compMacDTOPageInfo = compMacStockService.getMacStockPageList(compMacDTO);
        return new Result<PageInfo<CompMacDTO>>().ok(compMacDTOPageInfo);
    }

}
